import IO.Parser;
import org.junit.Test;
import static org.junit.Assert.fail;


/**
 * Created by:
 * User: Igor Martynovich and Guzenko Igor
 * Date: 20.11.13
 */
public class ParserTest {
    @Test
    public void testParseeInts(){
        String[] arrToParse ={"1","2","3"};
        int[] parseResultExpected = {1,2,3};
        int[] parseResultActual = Parser.parseInts(arrToParse);
        for(int i=0;i<parseResultExpected.length;i++){
            if(parseResultActual[i]!=parseResultExpected[i])
            fail("Parser crashed!");
        }
    }

}
